<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="<%=request.getContextPath()%>/css/style.css"
			rel="stylesheet" type="text/css" media="all">
</head>
<body background="<%=request.getContextPath()%>/images/bg_right.gif">
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<I>机构列表</I>&nbsp;&nbsp;&nbsp;<a
			href="<%=request.getContextPath()%>/jsp/superAdmin/organAdd.jsp"><b>新增机构</b>
		</a>
		<br />
		<br />
		<table width="95%" height="22" align="center" cellpadding="3"
			cellspacing="1" bgcolor="#cccccc">
			<tr class=sub_title height=23>
				<td width="10%" height="22">
					机构ID
				</td>
				<td width="15%">
					机构名称
				</td>
				<td width="15%">
					修改
				</td>
				<td width="15%">
					删除
				</td>
			</tr>

			
			<c:choose>
			<c:when test="${not empty organList}">
				<c:forEach items="${organList}" var="organ" varStatus="vs">
				<tr class=list03_t height=23>
				<td width="15%">${organ.id}</td>
				<td width="15%">${organ.organName}</td>
				<td width="15%"><a href="<%=request.getContextPath() %>/editOrgan.html?id=${organ.id}">修改</a></td>
				<td width="15%"><a href="<%=request.getContextPath() %>/deleteOrgan.html?id=${organ.id}" onclick="return confirm('确认删除此机构?')">删除</a></td>
				</tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr class="main_info">
					<td colspan="70">没有相关数据</td>
				</tr>
			</c:otherwise>
		</c:choose>
		</table>
		</body>
</html>